<template>
	<van-dialog use-slot title="" :show="showDialog" :showConfirmButton="false" customStyle="border-radius: 4rpx;">
		<view>
			<view class="tip-dialog-box">
				<view class="tip-text">{{title}}</view>
				<van-button color="#4078E5" block custom-style="height: 64rpx;"
					@click="showDialog=false">知道了</van-button>
			</view>
		</view>
	</van-dialog>
</template>

<script>
	export default {
		name: "c-tip-dialog",
		props: {
			title: {
				typeof: String,
				default: ''
			}
		},
		data() {
			return {
				showDialog: false
			};
		},
		methods: {
			show() {
				this.showDialog = true
			}
		}
	}
</script>

<style scoped lang="scss">
	.tip-dialog-box {
		padding: 48rpx 32rpx;

		.tip-text {
			font-size: 30rpx;
			color: #161616;
			padding-bottom: 32rpx;
			text-align: center;
		}
	}
</style>